<template>
  <div>
    <head-top routerName="myRecommend" title="推荐收益"></head-top>
    <div class="content-wrap">
      <div class="recommend">
        <div class="back bg1">
          <div class="label">元宝</div>
          <div class="data">3000</div>
        </div>
        <div class="back bg2">
          <div class="label">今日收益</div>
          <div class="data">3000</div>
        </div>
      </div>
      <div class="details">收益明细</div>
      <div class="list">
        <ul>
          <li v-for="item in 15" :key="item">
            <div class="data">+300{{ item }}</div>
            <div class="time">2021.3.{{ item }}</div>
          </li>
        </ul>
      </div>
    </div>
    <v-details ref="details"></v-details>
  </div>
</template>
<script>
import HeadTop from "@/components/head";
export default {
  components: {
    HeadTop,
  },
};
</script>
<style lang="less" scoped>
.content-wrap {
  .recommend {
    display: flex;
    justify-content: space-between;
    .back {
      width: 161px;
      height: 80px;
      padding: 10px;
      box-sizing: border-box;
      background-size: 161px 80px;
      .label {
        height: 17px;
        font-size: 12px;
        font-weight: 400;
        color: #ffffff;
        line-height: 17px;
      }
      .data {
        margin-top: 4px;
        height: 30px;
        font-size: 22px;
        text-align: center;
        font-weight: 500;
        color: #ffffff;
        line-height: 30px;
      }
      &.bg1 {
        background-image: url("./yuanbao_But_profit@2x.png");
      }
      &.bg2 {
        background-image: url("./profit_But_profit@2x.png");
      }
    }
  }
  .details {
    margin: 14px 0;
    height: 22px;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 22px;
  }
  .list {
    ul {
      li {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
        .data,
        .floatData {
          font-size: 14px;
          font-weight: 400;
          color: #333333;
        }
        .time {
          height: 17px;
          font-size: 12px;
          font-weight: 400;
          color: #999999;
          line-height: 17px;
        }
      }
    }
  }
}
</style>